<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> 
<html class="no-js" lang="en"> 
<!--<![endif]-->
<head>
	<?php include "module/index_header.php"; ?>
</head>

<body id="top">

  <!-- Begin of #container -->
  <div id="container">
	  <!-- Begin of #header -->
	<?php include "module/index_top_page.php"; ?> 
	<!--! end of #header -->
	
	<div class="fix-shadow-bottom-height"></div>
	
	<!-- Begin of Sidebar -->
	<?php
		include "module/index_left.php";
	?>
	<!--! end of #sidebar -->
	
	<!-- Begin of #main -->
	<div id="main" role="main">
		<?php
			if(isset($_GET['module']))
			{
				$incModule = 'module/'.str_replace('.','',$_GET['module']).'.php';
				if(file_exists($incModule))
				{
					if($authority->checkAuthority($_GET['module'],$_SESSION['login']))
					{
						include($incModule);
					}
					else
					{
						include "module/cant_login_page.php";
					}
				}
				else
				{
					include "module/dashboard.php";
				}
				
			}
			else
			{
				include "module/dashboard.php";
			}
		?>
  </div> 
  <!--! end of #main -->

	
	<footer id="footer"><div class="container_12">
		<div class="grid_12">
			<div class="footer-icon align-center"><a class="top" href="#top"></a></div>
			<div>
				
			</div>
		</div>
	</div></footer>
  </div> <!--! end of #container -->
  
</body>
</html>
<?php
	# NOT DELETE ! CLOSE DB !
	$db->kop();
?>